package com.znf4.good.specs.server.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znf4.good.specs.entity.Specs;
import com.znf4.good.specs.mapper.SpecsMapper;
import com.znf4.good.specs.server.SpecsServer;

@Service
public class SpecsServerImpl implements SpecsServer {
	
	@Autowired
	private SpecsMapper specsMapper ;
	

	public void addGoodSpecs(Specs specs) {
		specsMapper.insert(specs);
		
	}

	public void updateGoodSpecs(Specs specs) {
		specsMapper.update(specs);
		
	}

	public void delOneGoodSpecs(Specs specs) {
		specsMapper.deleteOne(specs);
		
	}

	public void delAllGoodSpecs(List<Specs> specs) {
		specsMapper.deleteAll(specs);
		
	}

	public Specs queryOne(Specs specs) {
		return specsMapper.queryOne(specs);
	}

	public List<Specs> queryAll(Specs specs) {
		return specsMapper.queryAll(specs);
	}
	
	
	
	
	

}
